package com.ksm.transfer.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DocumentDTO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3577485198229273256L;
	private Long id;
	private String name;
	private String type;
	private Date date;
	private String interlocuteur;
	private Double montant;
	private String commentaire;
	private Long tauxTvaId;
	private Long typeDocumentId;
	private boolean newFile;

	private List<JustificatifDTO> justificatifs = new ArrayList<JustificatifDTO>();

	public DocumentDTO() {
	}

	public DocumentDTO(String name, String type, Date date, String interlocuteur, Double montant) {
		super();
		this.name = name;
		this.type = type;
		this.date = date;
		this.interlocuteur = interlocuteur;
		this.montant = montant;
	}

	public DocumentDTO(Long id, String name, String type, Long typeDocumentId, Date date, String interlocuteur, Double montant, Long tauxTvaId) {
		super();
		this.id = id;
		this.name = name;
		this.type = type;
		this.typeDocumentId = typeDocumentId;
		this.date = date;
		this.interlocuteur = interlocuteur;
		this.montant = montant;
		this.tauxTvaId = tauxTvaId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getInterlocuteur() {
		return interlocuteur;
	}

	public void setInterlocuteur(String interlocuteur) {
		this.interlocuteur = interlocuteur;
	}

	public Double getMontant() {
		return montant;
	}

	public void setMontant(Double montant) {
		this.montant = montant;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCommentaire() {
		return commentaire;
	}

	public void setCommentaire(String commentaire) {
		this.commentaire = commentaire;
	}

	public boolean isNewFile() {
		return newFile;
	}

	public void setNewFile(boolean newFile) {
		this.newFile = newFile;
	}

	public List<JustificatifDTO> getJustificatifs() {
		return justificatifs;
	}

	public void setJustificatifs(List<JustificatifDTO> justificatifs) {
		this.justificatifs = justificatifs;
	}

	public void addJustificatif(JustificatifDTO justificatif) {
		this.justificatifs.add(justificatif);
	}

	public Long getTauxTvaId() {
		return tauxTvaId;
	}

	public void setTauxTvaId(Long tauxTvaId) {
		this.tauxTvaId = tauxTvaId;
	}

	public Long getTypeDocumentId() {
		return typeDocumentId;
	}

	public void setTypeDocumentId(Long typeDocumentId) {
		this.typeDocumentId = typeDocumentId;
	}

}
